﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace hmt_html
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("开始运行...");
            String DirectoryPath = System.AppDomain.CurrentDomain.BaseDirectory;
            string[] files = Directory.GetFiles(DirectoryPath);
            htmtohtml htohtml = new htmtohtml();
            foreach (string filepath in files)
            {
                if (filepath.Contains(".mht"))
                {
                    htohtml.readAndCreateMultFile(filepath, DirectoryPath);
                    break;
                }

            }
            Console.WriteLine("运行结束,按任意键结束..");
            Console.ReadLine();
        }
    }
}
